package com.bnyy.message.bean.chat.message_data;

import com.bnyy.message.enums.MessageType;
import com.google.gson.JsonObject;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Author : 关炳鹏
 * Description :
 * Date : 2022/12/9
 **/
@Table(name = "message_mall_goods")
public class MallGoodsMessage extends GoodsMessage {

    interface ColumnName {
        String SHOP_ID = "shop_id";
    }

    @Override
    public MessageType getMessageType() {
        return MessageType.MALL_GOODS;
    }

    public MallGoodsMessage() {
    }

    public MallGoodsMessage(String msgId, JsonObject jsonObject) {
        super(msgId, jsonObject);
        setShop_id(jsonObject.get("shop_id").getAsInt());
    }

    @Column(name = ColumnName.SHOP_ID)
    private int shop_id;

    public int getShop_id() {
        return shop_id;
    }

    public void setShop_id(int shop_id) {
        this.shop_id = shop_id;
    }
}
